package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsSchemeAudit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsSchemeAuditMapper {
    List<AtsSchemeAudit> selectAll();
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer auId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsSchemeAudit record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsSchemeAudit record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsSchemeAudit selectByPrimaryKey(Integer auId);
    /**
     * 根据外键Id查询审核表
     * @param saId
     * @return
     */
    List<AtsSchemeAudit> selectByPrimaryKeySaId(String saId);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsSchemeAudit record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsSchemeAudit record);

    int deleteScheme(Integer saId);

    int updateSchemeName(String saId,String saName);

    int updateAuditState(String saId,String auditState);

    AtsSchemeAudit selectAuditBySaId(String saId);

    int updateByPrimaryKeySelectiveFs(AtsSchemeAudit record);

}